package com.ruoyi.system.domain.material;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author GE-LV5
 * @create 2023/3/6 16:20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("material_property")
@ApiModel(description = "物料属性类型")
public class MaterialProperty implements Serializable {

    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;


    @ApiModelProperty(value = "属性类型编码")
    @Excel(name = "属性类型编码")
    private String propertyCode ;

    @ApiModelProperty(value = "属性类型名称")
    @Excel(name = "属性类型名称")
    private String propertyName;

    @ApiModelProperty(value = "自定义类型属性")
    //忽略映射
    @TableField(exist = false)
    private  List<MaterialPropertyType> materialPropertyType;
}
